export default {
  path: "/dashboard",
  // redirect: "/dashboard/index",
  meta: {
    icon: "ep:shopping-cart",
    title: "订单管理",
    rank: 4
  },
  children: [
    {
      path: "/dashboard/index",
      name: "Dashboard",
      component: () => import("@/views/dashboard/index.vue"),
      meta: {
        title: "订单总览",
        keepAlive: true
      }
    },
    {
      path: "/dashboard/total",
      name: "OrderTotal",
      component: () => import("@/views/dashboard/total/index.vue"),
      meta: {
        title: "全部订单",
        keepAlive: true
      }
    },
    {
      path: "/dashboard/status",
      name: "OrderStatus",
      component: () => import("@/views/dashboard/status/index.vue"),
      meta: {
        title: "订单状态",
        keepAlive: true
      }
    },
    {
      path: "/dashboard/order/:id",
      name: "OrderDetail",
      component: () => import("@/views/dashboard/order/index.vue"),
      meta: {
        showLink: false,
        /** 高亮菜单项 */
        activePath: "/dashboard/index",
        title: "订单详情",
        keepAlive: true
      }
    }
  ]
  //
} satisfies RouteConfigsTable;
